﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.Collection
{
    public class ArticleCollection
    {
        [Required(ErrorMessage = "Nhập tiêu đề cho tin.")]
        [DisplayName("Title")]
        [StringLength(250)]
        public string Title { get; set; }

        //[Required(ErrorMessage = "Please enter Alias of Category.")]
        [DisplayName("Alias")]
        [StringLength(250)]
        public string Alias { get; set; }

        [DisplayName("IntroText")]
        [StringLength(4000)]
        public string IntroText { get; set; }

        [DisplayName("FullText")]
        public string FullText { get; set; }

        [DisplayName("Images")]
        [StringLength(250)]
        public string Images { get; set; }

        [DisplayName("Created")]
        public DateTime Created { get; set; }

        [DisplayName("CreatedBy")]
        public int CreatedBy { get; set; }

        [DisplayName("Modified")]
        public DateTime? Modified { get; set; }

        [DisplayName("ModifiedBy")]
        public int? ModifiedBy { get; set; }

        [DisplayName("Url")]
        [StringLength(250)]
        public string Url { get; set; }

        [DisplayName("Version")]
        public int Version { get; set; }

        [DisplayName("Hits")]
        public int Hits { get; set; }

        [DisplayName("Ordering")]
        public int Ordering { get; set; }

        [DisplayName("Active")]
        public bool Active { get; set; }

        [DisplayName("MetaKey")]
        [StringLength(600)]
        public string MetaKey { get; set; }

        [DisplayName("MetaDesc")]
        [StringLength(600)]
        public string MetaDesc { get; set; }

        [DisplayName("MetaData")]
        [StringLength(300)]
        public string MetaData { get; set; }

        [DisplayName("Attribs")]
        [StringLength(500)]
        public string Attribs { get; set; }

        [DisplayName("Access")]
        public int Access { get; set; }

        [DisplayName("CheckedOut")]
        public int? CheckedOut { get; set; }

        [DisplayName("CheckedOutTime")]
        public DateTime? CheckedOutTime { get; set; }

        [DisplayName("PublicUp")]
        public DateTime? PublicUp { get; set; }

        [DisplayName("PublicDown")]
        public DateTime? PublicDown { get; set; }

        [DisplayName("Tags")]
        [StringLength(200)]
        public string Tags { get; set; }

        [DisplayName("Related")]
        [StringLength(100)]
        public string Related { get; set; }

        [DisplayName("ArticleID")]
        public int ArticleID { get; set; }

        [Required(ErrorMessage = "Please choose Category.")]
        [DisplayName("ArrayArticleCategoryID")]
        public string ArrayArticleCategoryID { get; set; }

        [DisplayName("CategoriesID")]
        public int CategoriesID { get; set; }
    }
}